<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"

      xmlns:p="http://primefaces.org/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      >

    <h:head>
        <title>Show me ticket</title>
         <h:outputStylesheet name="css/jsfcrud.css"/>
    </h:head>
    <h:body style="background-color: #90b4bd">
        
        <p:fieldset legend="Hi, #{myTicketController.user.firstName} #{myTicketController.user.lastName}">
        <h:panelGrid columns="2" cellpadding="10">
            <p:graphicImage value="resources/images/areYouIn.gif"/>
            <h:form>
<!--                <p:graphicImage value="resources/images/ticket.jpg"/>-->
                <h3> #{myTicketController.currentTicket.owner.firstName} 
                    invited you for #{myTicketController.currentTicket.share.name}
                    <br></br>                    Would you like to attend?
                </h3>
                        <h:panelGrid columns="1" >  
                            <h:selectOneRadio value="#{myTicketController.currentTicket.accepted}">
                                <f:selectItem itemLabel="I like that" itemValue="true"/>
                                <f:selectItem itemLabel="Not that time" itemValue="false"/>
                            
                            </h:selectOneRadio>
    </h:panelGrid> 
                <p:commandButton value="Go Ahead >" action="#{myTicketController.goAhead}" ajax="false"/>
            </h:form>
        
            </h:panelGrid>
        </p:fieldset>
    </h:body>
</html>

